
import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/client/user/` + url, ...arg)

export default {
	async page(query) {
		return await request('page', query, 'get')
	},
    async add(data) {
		return await request('add', data, 'post')
	},
    async edit(data) {
		return await request('edit', data, 'post')
	},
    async delete(data) {
		return await request('delete', data, 'post')
	},
    async detail(id) {
		return await request('detail', {id}, 'get')
	},
    async setStatusFlag(data){
		return await request('set_status_flag', data, 'post')
    }
}

